﻿using System;

namespace Function3
{
    /// <summary>
    /// 3、用while或者for循环语句来计算1+1/2+2/3+3/4+...+99/100之和。
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            float s = 1;

            float i = 1;

            while (i < 100) {

            	s = s + i / (i + 1);

                i += 1;

            	}

            Console.WriteLine (s);
            Console.ReadKey();
        }
    }
}
